import type {RouteRecordRaw} from "vue-router";

// 客户端（会员）路由
export const memberRoutes: RouteRecordRaw[] = [
    {
        path: '/memberLogin',
        name: 'memberLogin',
        component: () => import('@/views/member/login/index.vue'),
        meta: {
            title: '用户登录',
            hidden: true,   // 路由是否在菜单中隐藏，true：隐藏，false：显示
            admin: false
        }
    },
    {
        path: '/register',
        name: 'register',
        component: () => import('@/views/member/register/index.vue'),
        meta: {
            title: '用户注册',
            hidden: true,
            admin: false
        }
    },
    {
        path: '/member1',
        name: 'member1',
        component: () => import('@/layout/member/index.vue'),
        meta: {
            title: '',
            hidden: false,
            admin: false
        },
        redirect: '/member1/memberHome',
        children: [
            {
                path: '/member1/memberHome',
                name: 'memberHome',
                component: () => import('@/views/member/home/index.vue'),
                meta: {
                    title: '首页',
                    hidden: false,
                    admin: false
                }
            }
        ]
    },
    {
        path: '/equipment1',
        name: 'equipment1',
        component: () => import('@/layout/member/index.vue'),
        meta: {
            title: '设备',
            hidden: false,
            admin: false
        },
        redirect: '/equipment1/equipmentInfo',
        children: [
            {
                path: '/equipment1/equipmentInfo',
                name: 'equipmentInfo',
                component: () => import('@/views/member/equipment/index.vue'),
                meta: {
                    title: '设备',
                    hidden: false,
                    admin: false
                }
            }
        ]
    },
    {
        path: '/course1',
        name: 'course1',
        component: () => import('@/layout/member/index.vue'),
        meta: {
            title: '课程',
            hidden: false,
            admin: false
        },
        redirect: '/course1/courseInfo',
        children: [
            {
                path: '/course1/courseInfo',
                name: 'courseInfo',
                component: () => import('@/views/member/course/index.vue'),
                meta: {
                    title: '课程',
                    hidden: false,
                    admin: false
                }
            }
        ]
    },
    {
        path: '/coach1',
        name: 'coach1',
        component: () => import('@/layout/member/index.vue'),
        meta: {
            title: '教练',
            hidden: false,
            admin: false
        },
        redirect: '/coach1/coachInfo',
        children: [
            {
                path: '/coach1/coachInfo',
                name: 'coachInfo',
                component: () => import('@/views/member/coach/index.vue'),
                meta: {
                    title: '教练',
                    hidden: false,
                    admin: false
                }
            }
        ]
    },
    {
        path: '/memberCenter',
        name: 'memberCenter',
        component: () => import('@/layout/member/index.vue'),
        meta: {
            title: '会员中心',
            hidden: false,
            admin: false
        },
        redirect: '/memberCenter/memberInfo',
        children: [
            {
                path: '/memberCenter/memberInfo',
                name: 'memberInfo',
                component: () => import('@/views/member/member-center/index.vue'),
                meta: {
                    title: '会员中心',
                    hidden: false,
                    admin: false
                }
            }
        ]
    },
    {
        path: '/personalCenter',
        name: 'personalCenter',
        component: () => import('@/views/member/personal-center/index.vue'),
        meta: {
            title: '个人中心',
            hidden: true,
            admin: false
        }
    },


]